package com.qyhl.module_practice.volunteer.newlist.newvol.fragment;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeVolunteerBean;

import java.util.List;

public class PracticeVolunteerNewPresenter implements PracticeVolunteerNewContract.PracticeVolunteerNewPresenter {
    private PracticeVolunteerNewContract.PracticeVolunteerNewView mView;
    private PracticeVolunteerNewModel mModel;

    public PracticeVolunteerNewPresenter(PracticeVolunteerNewContract.PracticeVolunteerNewView mView) {
        this.mView = mView;
        this.mModel = new PracticeVolunteerNewModel(this);
    }

    @Override
    public void getListByTime(String page) {
        mModel.getListByTime(page);
    }

    @Override
    public void getListByScore(String page) {
        mModel.getListByScore(page);
    }

    @Override
    public void getListByAct(String page) {
        mModel.getListByAct(page);
    }

    @Override
    public void setList(List<PracticeVolunteerBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
